package com.ry;

import com.ry.thread.InventoryHandleThreadPool;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class ApplicationRunnerImpl implements ApplicationRunner {

    @Override
    public void run(ApplicationArguments args) throws Exception {

        System.out.println("ApplicationRunnerImpl启动了");
        // 初始化库存线程池
        InventoryHandleThreadPool.getInstance();

    }
}
